package com.qdaily.supportlibrary.pulltorefresh.loadmore;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.AbsListView;
import android.widget.ExpandableListView;
import android.widget.ListView;

/**
 * Created by song on 15/5/14.
 */
public class LoadMoreExpandableListViewContainer extends LoadMoreContainerBase {

    private ExpandableListView mExpandableListView;

    public LoadMoreExpandableListViewContainer(Context context) {
        super(context);
    }

    public LoadMoreExpandableListViewContainer(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void addFooterView(View view) {
        mExpandableListView.addFooterView(view);
    }

    @Override
    public void removeFooterView(View view) {
        mExpandableListView.removeFooterView(view);
    }

    @Override
    protected AbsListView retrieveAbsListView() {
        mExpandableListView = (ExpandableListView) getChildAt(0);
        return mExpandableListView;
    }
}

